package tech.aistar.day01;

public class User {
    private int id;
    private String username;
    //privvate String password;


    public User() {
        //System.out.println("空参构造");
    }

    public User(int id) {
        //System.out.println("一参构造");
        this.id = id;
    }

    public User(int id, String username) {
        //System.out.println("全参构造");
        this.id = id;
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                '}';
    }
}
